package chapter.job2;
//net老师
public class teacher3 extends common {
    public String course;//课

    public teacher3() {
    }

    public teacher3(String name, int age, String sex, String course) {

        super(name, age, sex);
        this.course = course;
    }

    public void setCourse(String course) {
        this.course = course;
    }

    public String getCourse() {
        return course;
    }

    //自我介绍
    public void selfIntroduce() {
        System.out.println("姓名："+name+"年龄："+age+"性别："+sex);
    }

    //上课
    public void giveLession() {
        System.out.println("教C#"+course);
    }
}
